testsuite: Add another gl renderer test
authorTimm Bäder <mail@baedert.org>
Wed, 24 Apr 2019 11:25:32 +0000 (13:25 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 5 May 2019 05:18:39 +0000 (07:18 +0200)
testsuite/gsk/compare/shadow-in-opacity.node [new file with mode: 0644]
testsuite/gsk/compare/shadow-in-opacity.png [new file with mode: 0644]
testsuite/gsk/meson.build

diff --git a/testsuite/gsk/compare/shadow-in-opacity.node b/testsuite/gsk/compare/shadow-in-opacity.node
new file mode 100644 (file)
index 0000000..c9a6286
--- /dev/null
@@ -0,0 +1,24 @@
+
+/*
+  The opacity node should affect both the shadow node child
+  (the node that's NOT colored) and the actual shadow.
+  I.e. the output should be entirely empty.
+*/
+opacity {
+  opacity: 0;
+
+  child: shadow {
+    child: cross-fade {
+      start: color {
+        color: blue;
+        bounds: 0 0 100 100;
+      }
+      end: color {
+        color: red;
+        bounds: 100 100 100 100;
+      }
+      progress: 0;
+    }
+    shadows: green 200 0 0;
+  }
+}
diff --git a/testsuite/gsk/compare/shadow-in-opacity.png b/testsuite/gsk/compare/shadow-in-opacity.png
new file mode 100644 (file)
index 0000000..64c2cab
Binary files /dev/null and b/testsuite/gsk/compare/shadow-in-opacity.png differ
index 71fe68dcd63e3f1269f6e0d009fcfa03e020b290..df7c5608c7b3b73e9926280b82ac922ab0c1061f 100644 (file)
@@ -56,6 +56,7 @@ compare_render_tests = [
   'outset_shadow_offset_y',
   'outset_shadow_rounded_top',
   'outset_shadow_simple',
+  'shadow-in-opacity',
 ]
 
 renderers = [